﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using KCMS.BusinessLogic.Models;
using System.Web.Mvc;
namespace KCMS.Areas.Admin.Models
{
    public class ProductEditorModel
    {
        public Product Product { get; set; }
        public IEnumerable<SelectListItem> CategoryList { get; set; }
        public IEnumerable<SelectListItem> BrendList { get; set; }
        public ProductEditorModel()
            : base()
        {
            Product = new Product();
        }
        public ProductEditorModel(Product product)
        {
            //    Id = product.Id;
            //    Title = product.Title;
            //    Text = product.Text;
            //    MetaDescription = product.MetaDescription;
            //    MetaKeys = product.MetaKeys;
            //    DateOfChange = product.DateOfChange;
            //    DateOfCreate = product.DateOfCreate;
            //    Published = product.Published;
            //    Code = product.Code;
            //    CategoryId = product.CategoryId;
            //    Index = product.Index;
            this.Product = product;
        }
    }
}